package com.syn.synold4s.adapter;

import android.graphics.Color;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.evrencoskun.tableview.adapter.recyclerview.holder.AbstractViewHolder;
import com.syn.synold4s.R;

public class MyColumnHeaderViewHolder extends AbstractViewHolder {
    public final TextView textView;

    public MyColumnHeaderViewHolder(View itemView) {
        super(itemView);
        textView = itemView.findViewById(R.id.column_header_data); // XML 文件中的列标题 TextView ID
    }

    @Override
    public void setSelected(@NonNull SelectionState selectionState) {
        super.setSelected(selectionState);
        if(!isSelected() && !isShadowed()){
            // Set your desired color
            setBackgroundColor(Color.parseColor("#512D90"));
        }
    }
}
